<Project>
  <PropertyGroup>
    <ShouldVerifyClosure>true</ShouldVerifyClosure>
    <ShouldVerifyTypes>true</ShouldVerifyTypes>
  </PropertyGroup>

  <ItemGroup>
    <!-- intentionally dangling refs in shims -->
    <ExcludeFromClosure Include="@(NetFxReference)" />
    <IgnoredReference Include="@(NetFxReference)" />

    <!-- windows.winmd is not part of the framework -->
    <IgnoredReference Include="Windows" />
  </ItemGroup>

  <!-- Include NETStandard assemblies when considering runtime assets for conflict resolution
       works around https://github.com/dotnet/sdk/issues/18129 -->
  <Target Name="IncludeNetStandardConflictResolution" BeforeTargets="_HandlePackageFileConflicts">
    <ItemGroup>
      <_RuntimeAssetsForConflictResolution Include="@(Reference)" Condition="'%(Reference.NuGetPackageId)' == 'NETStandard.Library' or '%(Reference.NuGetPackageId)' == 'NETStandard.Library.Ref'" />
    </ItemGroup>
  </Target>
</Project>